enablePredictiveBack

open fun enablePredictiveBack(enabled: Boolean)(source)

Control whether FragmentManager uses the new state predictive back feature that allows seeing the previous Fragment when using gesture back.

This should only be changed before any fragment transactions are done (i.e., in your Application class or prior to super.onCreate() in every activity).

Parameters

enabled

Whether predictive back should be enabled.